.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    font-family: '微软雅黑', sans-serif;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#todoInput {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li span {
    flex: 1;
}

.todo-section {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}
.todo-section h2 {
  color: #333;
  margin-bottom: 12px;
  font-size: 1.2em;
}
.completed {
  text-decoration: line-through;
  color: #666;
  background-color: #e9ecef;
  padding: 8px 12px;
  border-radius: 4px;
}

.complete-btn {
    background-color: #4CAF50;
    padding: 4px 8px;
    font-size: 12px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
}

.add-btn {
    background-color: #4CAF50;
}

.edit-btn {
    background-color: #2196F3;
}

.delete-btn {
    background-color: #ff4444;
}